package com.leiyuee.designpattern.strategy.service;

import com.leiyuee.designpattern.strategy.strategy.PayStrategy;
import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Service;

/**
 * @Author : Yu_Lei
 * @create 2024/5/8
 */



@Getter
@Setter
@Service
public class PayService {

    private PayStrategy payStrategy;

    public String pay(double amount) {
        return payStrategy.pay(amount);

    }
}
